<template>
    <div class="">
        <input type="text" v-model="msg">
        <h1>{{ msg }}</h1>
    </div>
</template>

<script setup>
import { ref } from 'vue';
// 输入框的默认值
const msg = ref("")
</script>

<style scoped></style>
